package com.qa.dom.entity;

import java.io.Serializable;

import com.baomidou.mybatisplus.enums.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.activerecord.Model;
import java.io.Serializable;

/**
 * <p>
 * 答疑记录表
 * </p>
 *
 * @author cxj
 * @since 2018-04-24
 */
public class Questionanswer extends Model<Questionanswer> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 提问者
     */
	private Integer questionId;
    /**
     * 回答者
     */
	private Integer answerId;
    /**
     * 最近消息
     */
	private String message;
    /**
     * 创建时间
     */
	@TableField("create_date")
	private Date createDate;

	//日期格式化
    private String createDateCh;

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Integer getQuestionId() {
		return questionId;
	}

	public void setQuestionId(Integer questionId) {
		this.questionId = questionId;
	}

	public Integer getAnswerId() {
		return answerId;
	}

	public void setAnswerId(Integer answerId) {
		this.answerId = answerId;
	}

	public String getMessage() {
		return message;
	}

	public void setMessage(String message) {
		this.message = message;
	}

	public Date getCreateDate() {
		return createDate;
	}

	public void setCreateDate(Date createDate) {
		this.createDate = createDate;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	public String getCreateDateCh() {
		return createDateCh;
	}

	public void setCreateDateCh(String createDateCh) {
		this.createDateCh = createDateCh;
	}

	@Override
	public String toString() {
		return "Questionanswer{" +
			", id=" + id +
			", questionId=" + questionId +
			", answerId=" + answerId +
			", message=" + message +
			", createDate=" + createDate +
			"}";
	}
}
